import logo from './logo.svg';
import './App.css';
import {openOFDBaseViewer} from "ofd.js";

function App() {
    return (
        <div className="App">
            <input type="file"
                   id="avatar" name="ofd文件"
                   accept="ofd" onChange={(event) => {
                readFile(event)
            }}></input>
                    <div id="OfdView" className="contain"
                    >
                    </div>
        </div>
    );
}

function readFile(event) {
    openOFDBaseViewer(event.target.files[0])
}

export default App;
